package com.our.biz;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.our.dao.InvestsMapper;
import com.our.dao.UserProMapper;
import com.our.dao.userTiXianMapper;
import com.our.model.Invests;
import com.our.model.UserPro;
import com.our.model.userTiXian;


@Service
public class SearchBiz {
	@Resource
	private InvestsMapper iDao;
	@Resource
	private userTiXianMapper utDao;
	@Resource UserProMapper upDao;
	public List<Invests> findByTypeIdAndPeriods(int investTypeId, int proPeriods){
		return iDao.findByTypeIdAndPeriods(investTypeId, proPeriods);
	}
	public List<userTiXian> findByuserName(String userName){
		return utDao.selectByuserName(userName);
	}
	
	public List<UserPro> findInvestByUserName(String userName){
		return upDao.findInvestByUserName(userName);
		
	}
}
